package cn.edu.neusoft.yuejian12.Service;



import cn.edu.neusoft.yuejian12.JavaBean.Login;
import cn.edu.neusoft.yuejian12.JavaBean.Reg;
import java.util.List;

import cn.edu.neusoft.yuejian12.JavaBean.User;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;






import java.util.List;


/**
 * Created by 木子李 on 2017/9/27.
 */

public interface UserService {
    //登录
    @GET("workout/api.php/login")
    Call<Login> getLogin(
            @Query("tel") String tel,
            @Query("password") String pwd);

    @GET("workout/api.php/reg")
    Call<Reg> userRegister(
            @Query("tel") String tel,
            @Query("password") String password



    );
    @GET("getUserById.do")
    Call <User> getUserById(
            @Query("user_id")int user_id
    );


    //获取大师的收藏状态
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> getTeaState(
            @Path("fan_id") String fan_id,
            @Path("userid") int userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID
    );
    //关注大师
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> changeTeaState(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );
    //关注俱乐部
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> changeClubState(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );
}
